﻿using Axis.BusinessObject.Research;
using Axis.Dao.Research;
using Axis.Web.Administrator.Global;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Axis.Web.Administrator.Views.Slider
{
    public partial class SliderList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CCore cCore = new CCore();
                string inputValue = cCore.GetInputValue(Context);
                CResearchDao cResearchDao = new CResearchDao();
                IList<CProject> list = cResearchDao.GetProject(inputValue);
                ddlProjectList.DataSource = list;
                ddlProjectList.DataTextField = "Name";
                ddlProjectList.DataValueField = "ID";
                ddlProjectList.DataBind();
                ddlProjectList.Items.Insert(0, new ListItem(""));

            }
        }
    }
}